The latest ELF changes have a null pointer dereference bug when you
have neither an elf notes section nor a __xen_guest_string. This patch
checks for the existence of the __xen_guest_string prior to using it.
Please apply. Thanks,
Alex
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
---
const char *fallback;
const char *p;
+ if ( !dsi->__xen_guest_string )
+ return NULL;
+
if ( type > sizeof(xenguest_fallbacks) )
return NULL;
const char *fallback;
const char *p;
+ if ( !dsi->__xen_guest_string )
+ return NULL;
+
if ( type > sizeof(xenguest_fallbacks) )
return NULL;